<template>
  <div>
    top
  </div>
</template>

<script setup lang="ts">
import { shallowRef, onMounted } from "vue"
import { Message } from "../utils/Message.js"
import { useRouter } from "vue-router"
const router = useRouter()
console.log(router)
onMounted(() => {
  // Message.init(window)
  // Message.finish("top-empty")

  Message.addCppMessageCallback("CeilingDesign", data => {
    const route = router.options.routes.find(item => item?.meta?.path == data.CeilingPage)
    route && router.push(route.path)
  })

})

</script>
<style lang="scss" scoped></style>